package com.yikome.shop.repository;

import org.springframework.data.jpa.repository.Query;
import org.springframework.data.repository.query.Param;
import org.springframework.stereotype.Repository;

import com.yikome.common.CommonRepository;
import com.yikome.shop.entity.Collection;

@Repository
public interface CollectionRepository extends CommonRepository<Collection, Long> {

	@Query("select t from Collection t where t.yn = 1 and t.id = :collectionId")
	Collection findCollection(@Param("collectionId")Long collectionId);

}
